<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Product Comparison Table</title>
    <style>


        body {
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            background-color: #ffffff;
        }
        .table-container {
            width: 90%;
            max-width: 1200px;
            overflow-x: auto;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        table {
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
            background-color: white;
        }
        th, td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }
        th {
            background-color: #3498db;
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        th:hover {
            background-color: #2980b9;
        }
        tr:nth-child(even) {
            background-color: #f8f8f8;
        }
        tr:hover {
            background-color: #e8f4fd;
        }
        td:first-child {
            font-weight: bold;
            color: #2c3e50;
        }
        .price {
            font-weight: bold;
            color: #27ae60;
        }
        .rating {
            color: #f39c12;
        }
        @media (max-width: 768px) {
            .table-container {
                width: 95%;
            }
            th, td {
                padding: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="table-container">
        <table>
            <thead>
                <tr>
                    
                <th>Product</th>
                    <th>Brand</th>
                    <th>Price</th>
                    <th>Rating</th>
                    <th>Features</th>
                    <th>Availability</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Smartphone X</td>
                    <td>TechGiant</td>
                    <td class="price">$999</td>
                    <td class="rating">★★★★☆</td>
                    <td>5G, 6.7" OLED, 128GB</td>
                    <td>In Stock</td>
                </tr>
                <tr>
                    <td>Laptop Pro</td>
                    <td>MegaBook</td>
                    <td class="price">$1499</td>
                    <td class="rating">★★★★★</td>
                    <td>i7, 16GB RAM, 512GB SSD</td>
                    <td>2-3 day shipping</td>
                </tr>
                <tr>
                    <td>Smart Watch 3</td>
                    <td>FitTech</td>
                    <td class="price">$299</td>
                    <td class="rating">★★★★☆</td>
                    <td>Heart rate, GPS, 5ATM</td>
                    <td>In Stock</td>
                </tr>
                <tr>
                    <td>4K TV 55"</td>
                    <td>ViewMaster</td>
                    <td class="price">$699</td>
                    <td class="rating">★★★★★</td>
                    <td>HDR, 120Hz, Smart TV</td>
                    <td>Limited Stock</td>
                </tr>
                <tr>
                    
                    <td>Wireless Earbuds</td>
                    <td>AudioPro</td>
                    <td class="price">$159</td>
                    <td class="rating">★★★★☆</td>
                    <td>ANC, 24h battery, IPX4</td>
                    <td>In Stock</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>